package com.mars.module.admin.request;

import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mars.module.admin.entity.SysProduct;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.mars.common.request.PageRequest;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 订单请求对象 sys_order
 *
 * @author mars
 * @date 2024-01-24
 */
@Data
@ApiModel(value = "订单对象")
@EqualsAndHashCode(callSuper = true)
public class SysOrderRequest extends PageRequest{



    /**
     * 主键ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 订单编号
     */
    @ApiModelProperty(value = "订单编号")
    private String serialno;


    /**
     * 订单总价
     */
    @ApiModelProperty(value = "订单总价")
    private BigDecimal totalPrice;

    /**
     * 下单用户
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "下单用户")
    private Long createUserId;

    /**
     * 下单时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下单时间")
    private LocalDateTime createTime;

    /**
     * 订单状态
     */
    @ApiModelProperty(value = "订单状态")
    private String status;

    /**
     * 收货地址
     */
    @ApiModelProperty(value = "收货地址")
    private String address;

    /**
     * 收货人电话
     */
    @ApiModelProperty(value = "收货人电话")
    private String telephone;

    @ApiModelProperty(value = "是否查询当前用户的数据")
    private String isCurrent;

    @ApiModelProperty(value = "商品总数")
    private String productSum;

    @ApiModelProperty(value = "是否是购物车页面：1-是 0-否")
    private String isShopCar;

    @ApiModelProperty(value = "商品列表")
    private List<SysProduct> productList;

}
